home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Sample Code / Printing Samples / Printer Drivers… / ImageWriterLQ / UniversalMessageIntf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-13  |  2.4 KB  |  71 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2. FILENAME
  3.     UniversalMessageIntf.h
  4.  
  5. DESCRIPTION
  6.     This module contains the constant and type declarations for the 
  7.     UniversalMessageIntf.c file.  That file contains the routines which override
  8.     the universal imaging messages that are supported by the ImageWriter LQ
  9.     driver.
  10.     
  11.     9/13/93 - dmh - Updated for the b2 seed.
  12.     
  13. COPYRIGHT
  14.      Copyright Apple Computer, Inc. 1992
  15.      All rights reserved. 
  16.     
  17. -------------------------------------------------------------------------------- */
  18.  
  19. #ifndef __UNIVERSALMESSAGEINTF__
  20. #define __UNIVERSALMESSAGEINTF__
  21.  
  22. /*********************************************************************************
  23.  *                                            CONSTANTS                                                *
  24.  *********************************************************************************/
  25.  
  26. // Constants for accessing config file information
  27.  
  28. #define    kIWLQConfigType                'ICFG'
  29. #define    kIWLQConfigID                    128            
  30.     
  31.  
  32. /*********************************************************************************
  33.  *                                             TYPES                                                     *
  34.  *********************************************************************************/
  35.  
  36. // SpecGlobalsRec - Structure containing the LaserWriterSC's global variables 
  37.  
  38. typedef struct
  39. {
  40.     gxRasterImageDataHdl    hImageData;            // image data for a page 
  41.     short                    leftMargin;            //    pixel offset of the left margin for the current page
  42.     PicHandle                sheetFeederPICT;    //    Handle to the sheetfeeder picture to display in the paper
  43.                                                         // configuration dialog
  44.     long                    pagePrinting;        //    Number of the page that's currently being printed
  45.     Handle                    draftTable;            //    Handle to table of character info. used in draft printing
  46. }    SpecGlobalsRec,     
  47.     *SpecGlobalsPtr,      
  48.     **SpecGlobalsHdl;
  49.     
  50.  
  51. // IWLQConfigInfo - Configuration info stored in the desktop printer file
  52.  
  53. typedef struct
  54. {
  55.     Boolean        hasColorRibbon;    //    true if printer has color ribbon; false otherwise
  56.     char            numTrays;            //    number of sheet feeder trays attached to the printer; zero if no sheet feeder
  57. }    IWLQConfigInfo,
  58.     *IWLQConfigInfoPtr,
  59.     **IWLQConfigInfoHdl;
  60.  
  61.  
  62. /*********************************************************************************
  63.  *                                            DEFINES                                                    *
  64.  *********************************************************************************/
  65.  
  66. #define kSpecGlobalsRecLen     sizeof(SpecGlobalsRec)
  67.  
  68. // F2S - for converting fixed numbers to shorts 
  69. #define F2S(a) FixedToInt(a)
  70.  
  71. #endif __UNIVERSALMESSAGEINTF__